/*
 * PKL 51 GUNUNG KIDUL
 * Subseksie DATA ENTRY + CAPI
 */
package pkl51.database;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 *
 * @author Hindarwan
 */
public class BackupDB implements Runnable{

    @Override
    public void run() {
        try {
            Runtime rt = Runtime.getRuntime();
                Process pr = rt.exec("backup.bat");

                BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));

                String line=null;

                while((line=input.readLine()) != null) {
                    System.out.println(line);
                }
                Thread.currentThread().interrupt();
        } catch (Exception exc) {/*handle exception*/

        }

    }
    
}
